<template>
    <div class="scroll-top" @click="returnTop">
        <div class="box-in"></div>
    </div>
</template>

<script>
    export default {
        name: "ScrollTop",
        methods:{
            returnTop(){
                document.documentElement.scrollTop = document.body.scrollTop = 0;
            }
        }
    }
</script>

<style lang="scss" scoped>
@import "../assets/css/scroll-top";
</style>